package com.cqhgcloud.monarch.organ.service.impl;

import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.cqhgcloud.monarch.organ.mapper.RoleMeunMapper;
import com.cqhgcloud.monarch.organ.entity.RoleMeun;
import com.cqhgcloud.monarch.organ.service.RoleMeunService;
import lombok.AllArgsConstructor;

/**
 * @param 角色菜单表
 * @author weimeilayer@gmail.com
 * @date 2020-01-31 22:33:01
 */

@Service
@AllArgsConstructor
public class RoleMeunServiceImpl extends ServiceImpl<RoleMeunMapper, RoleMeun> implements RoleMeunService {
	
	@Override
	public IPage<RoleMeun> queryPage(Page page,RoleMeun roleMeun) {
		IPage<RoleMeun> pages =baseMapper.selectPage(page,Wrappers.query(roleMeun));
		page.setTotal(baseMapper.selectCount(Wrappers.query(roleMeun)));
		return pages;
	}
}